package cn.emove.modular.system.service;


import cn.emove.core.common.page.LayuiPageFactory;
import cn.emove.modular.system.entity.Payment;
import cn.emove.modular.system.entity.TicketEntity;
import cn.emove.modular.system.mapper.PaymentMapper;
import cn.emove.modular.system.mapper.TicketMapper;
import cn.stylefeng.roses.core.datascope.DataScope;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

import java.util.Map;

@Service
public class PaymentService extends ServiceImpl<PaymentMapper, Payment> {
    public Page<Map<String, Object>> selectPayments(DataScope dataScope, String meterNo, String shopName, String beginTime, String endTime, String payBeginTime, String payEndTime, String monthBeginTime, String monthEndTime, String payStatus, String paymentType) {
        Page page = LayuiPageFactory.defaultPage();
        return this.baseMapper.selectPayments(page,dataScope,meterNo, shopName,beginTime, endTime,payBeginTime,payEndTime,monthBeginTime,monthEndTime,payStatus,paymentType);
    }
}
